package logic.framework_logic;

import java.util.List;

import javaRMI.RMIClient;
import logicsv.framework_logicsv.FrameworkLogicsv;
import po.CourseModelPO;
import po.ModelPO;
import po.SubModelPO;
import resultmessage.FrameworkRM;
import vo.ModelVO;

public class FrameworkLogicController implements FrameworkLogicsv{
	private Framework framework ;
	public FrameworkLogicController(RMIClient rmi){
		framework = new Framework(rmi);
	}
	@Override
	public FrameworkRM addModel(String collegeID, ModelPO m) {
		return framework.addModel(collegeID, m);
	}



	@Override
	public FrameworkRM deleteModel(String collegeID, String modelID) {
		return framework.deleteModel(collegeID, modelID);
	}

	@Override
	public FrameworkRM updateModel(String collegeID, ModelPO m) {
		return framework.updateModel(collegeID, m);
	}

	@Override
	public FrameworkRM addSubModel(String collegeID, String modelID,
			SubModelPO sm) {
		// TODO Auto-generated method stub
		return framework.addSubModel(collegeID, modelID, sm);
	}

//	@Override
//	public SubModelVO getSubModel(String collegeID, String modelID,
//			String subModelID){
//		return framework.getSubModel(collegeID, modelID, subModelID);
//	}

	@Override
	public FrameworkRM deleteSubModel(String collegeID, String modelID,
			String subModelID) {
		return framework.deleteSubModel(collegeID, modelID, subModelID);
	}

	@Override
	public FrameworkRM updateSubModel(String collegeID, String modelID,
			SubModelPO sm) {
		return framework.updateSubModel(collegeID, modelID, sm);
	}
	@Override
	public List<ModelVO> getAllModelOfCollege(String collegeID) {
		// TODO Auto-generated method stub
		return framework.getAllModelOfCollege(collegeID);
	}
	
	
	public FrameworkRM deleteCouOfSubModel(String courseID,String subModelID){
		return framework.deleteCouOfSubModel(courseID, subModelID);
		
	}
	public FrameworkRM addCouOfSubModel(String courseID,String subModelID) {
		return framework.addCouOfSubModel(courseID, subModelID);
	}
	public CourseModelPO getSubModelOfCou(String courseID) {
		return framework.getSubModelOfCou(courseID);
	}
	public FrameworkRM updateSubModelOfCou (String courseID, String submodelID) {
		return framework.updateSubModelOfCou(courseID, submodelID);
	}
	
	
	
	@Override
	public boolean canChooseCurriculum() {
		// TODO Auto-generated method stub
		return framework.canChooseCurriculum();
	}
	@Override
	public boolean canChooseCrossMajor() {
		// TODO Auto-generated method stub
		return framework.canChooseCrossMajor();
	}
	@Override
	public boolean canChoosePublic() {
		// TODO Auto-generated method stub
		return framework.canChoosePublic();
	}
	@Override
	public boolean changeChooseCurriculum() {
		// TODO Auto-generated method stub
		return framework.changeChooseCurriculum();
	}
	@Override
	public boolean changeChooseCrossMajor() {
		return framework.changeChooseCrossMajor();
	}
	@Override
	public boolean changeChoosePublic() {
		return framework.changeChoosePublic();
	}
	@Override
	public String addModelReturnID(String collegeID, ModelPO model) {
		// TODO Auto-generated method stub
		return framework.addModelReturnID(collegeID, model);
	}
	@Override
	public String addSubModelReturnID(String collegeID, String modelID,
			SubModelPO submodel) {
		// TODO Auto-generated method stub
		return framework.addSubModelReturnID(collegeID, modelID, submodel);
	}


}
